<%--
  Created by IntelliJ IDEA.
  User: 32266
  Date: 2023/6/9
  Time: 16:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>cal</title>
</head>
<body>
<%
//    String result = request.getAttribute("result");
//    int length = (int) request.getAttribute("length");
%>
<form action="../CalServlet" method="post">
    First Val: <input type="text" value="${cookie.cfirstVal.value}" name="firstVal"/>Enter a Name:<input value="${cookie.cname.value}" type="text"  name="name"><br/>
    Second Val:<input type="text" value="${cookie.csecondVal.value}" name="secondVal">Length:<input type="text" value="${cookie.cLength.value}" name="length"><br/>
    Result:    <input type="text" value="${cookie.cResult.value}" name="Result"/><br/>
    <input type="submit" name="+" value="Add">
    <input type="submit" name="-" value="Subtract">
    <input type="submit" name="*" value="Multiply">
    <input type="submit" name="/" value="Divide">
    <input type="submit" name="computeLength" value="ComputeLength">
    <input type="submit" name="reset" value="Reset">
</form>

</body>
</html>
